<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>噢泡时间到</title>
</head>

<body>
    <p class=".reminder">噢泡时间到</p>
</body>

</html>
<script>
    const { ipcRenderer } = require('electron')
    // 主进程 TO 渲染进程 消费端
    ipcRenderer.on('setTask', (event, task) => {
        document.querySelector('.reminder').innerHTML =
            `<span>${decodeURIComponent(task)}</span>的时间到啦！`
    })

</script>